package com.yunc.shop.mq.rocketmq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Service;

/**
 * @author taocongcong
 * @create 2021-05-21 14:21
 */
@Slf4j
@Service
public class SysUserUpdateListener {

    @StreamListener(CustomChannel.INPUT_USER_TOPIC)
    public void receive(String message) {
        log.info("接收stream到用户更新新消息：" + message);
    }
}
